 package net.go176.backpack.command;
 
 import java.util.ArrayList;
 import java.util.List;
 import org.bukkit.command.Command;
 import org.bukkit.command.CommandSender;
 
 public class CmdHelp
   extends CommandBase
 {
   public CmdHelp(CommandManager cmdMan) {
     super(cmdMan);
     this.labels.add("help");
     this.labels.add("?");
     this.description = "Show help page";
     this.permission = "mybackpack.command.help";
   }
 
   
   public void execute(CommandSender cs, Command cmd, String label, String[] args) {
    CommandManager.sendMsg(cs, "&7&l====[My Backpack]====");
     for (CommandBase mycmd : this.cmdMan.cmds) {
       if (!cs.hasPermission(mycmd.permission))
         continue; 
       String usage = CommandManager.lister(mycmd.labels, "| ", "");
       if (mycmd.labels.size() > 1)
         usage = "<" + usage + ">"; 
      if (mycmd.usage != null)
         usage = String.valueOf(usage) + " " + mycmd.usage; 
       String description = (mycmd.description == null) ? "" : (" &3- " + mycmd.description);
       CommandManager.sendMsg(cs, "&2/" + label + " &a" + usage + description);
     } 
   }
 
   
   protected List<String> tabComplete(CommandSender cs, Command cmd, String label, String[] args) {
     return new ArrayList<>(0);
   }
 }


/* Location:              D:\User\Xuan\Downloads\MyBackpack1.2.5.jar!\net\saralab\mybackpack\command\CmdHelp.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.1.3
 */